import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function DictionaryList(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/dictionary/getDictionaryByPage',
    method: 'post',
    data: params
  })
}

export function SaveDictionary(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/dictionary/addDictionary',
    method: 'post',
    data: params
  })
}
export function DelDictionary(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/dictionary/deleteDictionary',
    method: 'get',
    params
  })
}
export function GetDictionary(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/dictionary/findDictionaryById',
    method: 'get',
    params
  })
}
export function UpdateDictionary(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/dictionary/updateDictionary',
    method: 'post',
    data: params
  })
}